<template>
  <div
    id="app"
    v-loading="loading"
    element-loading-text="拼命加载中"
    element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(0, 0, 0, 0.8)"
  >
    <NavBar class="fixed" />
    <router-view></router-view>
  </div>
</template>

<script>
import NavBar from "@/components/navbar";
export default {
  name: "digjson",
  components: {
    NavBar
  },
  data() {
    return {
      loading: true
    };
  },
  created() {
    setTimeout(() => {
      this.loading = false;
    }, 2000);
  }
};
</script>

<style lang="scss" scoped>
.fixed {
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  z-index: 1000;
}
</style>
